翻訳と辞書
Words near each other
・ Process analytical technology
・ Process and Reality
・ Process architecture
・ Process area (CMMI)
・ Process art
・ Process automation system
・ Process calculus
・ Process camera
・ Process capability
・ Process capability index
・ Process capital
・ Process chemistry
・ Process Combustion Ltd.
・ Process Communication Model
・ Process consultant
Process Contention Scope
・ Process control
・ Process control block
・ Process control daemon
・ Process control monitoring
・ Process control network
・ Process corners
・ Process costing
・ Process crime
・ Process decision program chart
・ Process design
・ Process design kit
・ Process development execution system
・ Process drama
・ Process Driven Development


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Process Contention Scope : ウィキペディア英語版
Process Contention Scope

Process Contention Scope is one of the two basic ways of scheduling threads. Both of them being: process
local scheduling (known as Process Contention Scope, or Unbound Threads—the
Many-to-Many model) and system global scheduling (known as System Contention Scope, or Bound Threads—the One-to-One model). These scheduling classes are
known as the scheduling contention scope, and are defined only in POSIX. Process
contention scope scheduling means that all of the scheduling mechanism for the
thread is local to the process—the thread's library has full control over which
thread will be scheduled on an LWP. This also implies the use of either the Many-
to-One or Many-to-Many model.〔''Operating System Concepts'',7th edition,Wiley,2005,p:172〕
==Types of PCS scheduling==
PCS scheduling is done by the threads library. The library chooses which
unbound thread will be put on which LWP. The scheduling of the LWP is (of
course) still global and independent of the local scheduling. While this does mean
that unbound threads are subject to a sort of funny, two-tiered scheduling
architecture, in practice, you can ignore the scheduling of the LWP and deal
solely with the local scheduling algorithm.
There are four means of causing an active thread (say, T1) to context switch. Three
of them require that the programmer has written code. These methods are largely
identical across all of the libraries.〔''Pthreads Primer'',Sunsoft Press,1996,p:88〕
# Synchronization. By far the most common means of being context switched (a wild generalization) is for T1 to request a mutex lock and not get it. If the lock is already being held by T2, then the T1 will be placed on the sleep queue, awaiting the lock, thus allowing a different thread to run.
# Preemption. A running thread (T6) does something that causes a higher priority thread (T2) to become runnable. In that case, the lowest priority active thread (T1) will be preempted, and T2 will take its place on the LWP. The ways of causing this to happen include releasing a lock, changing the priority level of T2 upwards or of T1 downwards.
# Yielding. If the programmer puts an explicit call to sched_yield() in the code that T1 is running, then the scheduler will look to see if there is another runnable thread (T2) of the same priority (there can’t be a higher priority runnable thread). If there is one, then that one will then be scheduled. If there isn’t one, then T1 will continue to run.
# Time-Slicing. If the vendor’s PCS allows time-slicing (like Digital UNIX, unlike Solaris), then T1 might simply have its time slice run out and T2 (at the same priority level) would then receive a time slice.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Process Contention Scope」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.